﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SisCRA.Config;

namespace SisCRA.Forms
{
    public partial class FormAbout : Form
    {
        #region -Constructor-

        /// <summary>
        /// Construtor padrão.
        /// </summary>
        public FormAbout()
        {
            InitializeComponent();
            LoadUserInformation();
        }

        #endregion

        #region -Events-

        private void buttonClose_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        #endregion

        #region -Private Methods-

        /// <summary>
        /// Carrega as informações do usuário do sistema a partir do arquivo de configuração App.config.
        /// </summary>
        private void LoadUserInformation()
        {
            this.labelUserName.Text = AppConfig.ReadConfiguration(AppConfig.AppUser);
            this.labelUserEmail.Text = AppConfig.ReadConfiguration(AppConfig.AppUserEmail);
        }

        #endregion
    }
}
